/* 解决 h1 标签在 webkit 内核浏览器中文字大小失效问题 */
:-webkit-any(article, aside, nav, section) h1 {
  font-size: 2em;
}

/* 全局滚动条样式 - 谷歌浏览器 */

/* scroll bar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 20px;
}

$--color-primary: #409eff;
$--color-success: #67c23a;
$--color-warning: #e6a23c;
$--color-danger: #f56c6c;
$--color-info: #909399;
.primary {
  color: $--color-primary;
}
.success {
  color: $--color-success;
}
.warning {
  color: $--color-warning;
}
.danger {
  color: $--color-danger;
}

// 自定义样式
.w-full {
  width: 100% !important;
}
.wp-50 {
  width: 50% !important;
}

// margin && padding

@for $i from 0 through 48 {
  @if $i % 2 == 0 {
    // margin
    .mt-#{$i} {
      margin-top: #{$i}px;
    }
    .mb-#{$i} {
      margin-bottom: #{$i}px;
    }
    .ml-#{$i} {
      margin-left: #{$i}px;
    }
    .mr-#{$i} {
      margin-right: #{$i}px;
    }
    .m-#{$i} {
      margin: #{$i}px;
    }
    .mx-#{$i} {
      margin: 0 #{$i}px;
    }
    .my-#{$i} {
      margin: #{$i}px 0;
    }
    // padding

    .pt-#{$i} {
      padding-top: #{$i}px;
    }
    .pb-#{$i} {
      padding-bottom: #{$i}px;
    }
    .pl-#{$i} {
      padding-left: #{$i}px;
    }
    .pr-#{$i} {
      padding-right: #{$i}px;
    }
    .p-#{$i} {
      padding: #{$i}px;
    }
    .g-px-#{$i} {
      padding: 0 #{$i}px;
    }
    .py-#{$i} {
      padding: 0cqw#{$i}px 0;
    }
  }
}


// text align
.tl {
  text-align: left;
}
.tc {
  text-align: center;
}
.tr {
  text-align: right;
}


// custom

// utils
.g-dialog-bottom-action {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}


// mouse cursor
.pointer {
  cursor: pointer;
}



// flex
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all 0.2s;
}
.fade-transform-enter-from {
  opacity: 0;
  transition: all 0.2s;
  transform: translateX(-30px);
}
.fade-transform-leave-to {
  opacity: 0;
  transition: all 0.2s;
  transform: translateX(30px);
}
